beforeRunningCommand nop command #!/usr/bin/ruby require 'rubygems' require 'i18n' I18n.locale = :en I18n.load_path << File.join(ENV['TM_PROJECT_DIRECTORY'], 'config', 'locales', 'en.yml') class << Object def const_missing(const) nil end end def method_missing(method, *args) "**#{method}**" end def t(*args) I18n.t(*args) end def args_to_array(*args) args end args = eval('args_to_array(' + ENV['TM_SELECTED_TEXT'] + ')') if args.last.is_a?(Hash) args.last.each { |k, v| args.last[k] = "**#{k}**" if v.nil? } end print I18n.t(*args) fallbackInput none input selection keyEquivalent @I name Lookup Translation output showAsTooltip uuid 7DAF30C3-0247-4E94-AA44-DD2E69A6E236